package xyz.jcat.common.web;

import lombok.Getter;

import java.util.List;

@Getter
public class ParameterErrorException extends RuntimeException {

    private List<ParameterErrorVo> errors;

    public ParameterErrorException(List<ParameterErrorVo> errors) {
        super(errors.get(0).getMsg());
        this.errors = errors;
    }

    public ParameterErrorException(String message) {
        super(message);
    }
}
